<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoAntialias class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairoradialgradient.getcircles.html">CairoRadialGradient::getCircles</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairocontent.html">CairoContent</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairoantialias" class="reference">

 <h1 class="title">The CairoAntialias class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="cairoantialias.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Enum class that specifies the type of antialiasing to do when rendering text or shapes.
   </p>
  </div>


  <div class="section" id="cairoantialias.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoAntialias</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairoantialias.html#cairoantialias.constants.mode-default"><var class="varname">MODE_DEFAULT</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairoantialias.html#cairoantialias.constants.mode-none"><var class="varname">MODE_NONE</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairoantialias.html#cairoantialias.constants.mode-gray"><var class="varname">MODE_GRAY</var></a></var>
     <span class="initializer"> = 2</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairoantialias.html#cairoantialias.constants.mode-subpixel"><var class="varname">MODE_SUBPIXEL</var></a></var>
     <span class="initializer"> = 3</span>
    ;</div>

    
   }</div>


  </div>
  

  <div class="section" id="cairoantialias.constants">
   <h2 class="title">预定义常量</h2>
   <dl>


    
     <dt id="cairoantialias.constants.mode-default"><strong><code>CairoAntialias::MODE_DEFAULT</code></strong></dt>

     <dd>

      <p class="para">Use the default antialiasing for the subsystem and target device</p>
     </dd>

    

    
     <dt id="cairoantialias.constants.mode-none"><strong><code>CairoAntialias::MODE_NONE</code></strong></dt>

     <dd>

      <p class="para">Use a bilevel alpha mask</p>
     </dd>

    

    
     <dt id="cairoantialias.constants.mode-gray"><strong><code>CairoAntialias::MODE_GRAY</code></strong></dt>

     <dd>

      <p class="para">Perform single-color antialiasing (using shades of gray for black text on a white background, for example).</p>
     </dd>

    

    
     <dt id="cairoantialias.constants.mode-subpixel"><strong><code>CairoAntialias::MODE_SUBPIXEL</code></strong></dt>

     <dd>

      <p class="para">Perform antialiasing by taking advantage of the order of subpixel elements on devices such as LCD panels.</p>
     </dd>

    

   </dl>

  </div>



 </div>

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairoradialgradient.getcircles.html">CairoRadialGradient::getCircles</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairocontent.html">CairoContent</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
